$main-color: #4a494d;
$success-color: #91c91a;
$info-color: #02aaff;
$warning-color: #ffc447;
$danger-color: #ff4130;
$bg-color: #e9e9e7;
$bg-main-color: #ffffff;
$font-color: #000;
$font-hover-color: #fff;
$font-footer-color: #a0a0a0;

$title-font-color: #6c757d;
$top-tip-color: #1e1e1e;

$btn-search-color: #6c757d;
$nav-color: #e3e5e8;

@mixin hr_height() {
    height: 36px;
    line-height: 36px;
}

#content_progress {
    /* Positioning */
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
    color: $main-color;
    &::-webkit-progress-bar {
        background-color: transparent;
    }
    &::-webkit-progress-value {
        background-color: $main-color;
    }
    &::-moz-progress-bar {
        background-color: $main-color;
    }
}

.hr-hidden {
    display: none;
}

body {
    font: 14px Consolas, 'Microsoft JhengHei', 'Apple LiGothic Medium,Microsoft YaHei', 微软雅黑, Arial, sans-serif;
    background-color: $bg-color;
    padding: 0;
}
.hr-header__top .container {
    background-color: $top-tip-color;
    @include hr_height;
    font-size: 12px;
    .hr-toptips {
        height: inherit;
        color: $font-hover-color;
        .hr-toptips__left {
            float: left;
            width: 70%;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            margin: 0;
        }
        .hr-toptips__right {
            float: right;
            margin: 0;
            a {
                color: $font-hover-color;
            }
        }
    }
}
.hr-header__wrapper .container {
    background-color: $bg-main-color;
    clear: both;
    .hr-header__main {
        width: 100%;
        height: 90px;
        overflow: hidden;
        line-height: 90px;
    }
    .hr-top__logo {
        float: left;
        width: 40%;
        height: inherit;
        overflow: hidden;
        a {
            display: inherit;
            height: inherit;
            img {
                height: 80px;
                min-height: 80px;
            }
        }
    }
    .hr-top__search {
        display: inherit;
        height: inherit;
        float: right;
        .hr-search__padding {
            padding: 26px 0;
        }
        .hr-btn__primary {
            background-color: $btn-search-color;
            box-shadow: 0 2px 6px 0 rgba(74, 73, 77, 0.5);
            border-color: #6c757d;
        }
    }
}

.hr-nav__wrapper .container {
    background-color: $bg-main-color;
    padding: 0;
    .hr-navbar__nav {
        width: 100%;
        background-color: $nav-color;
    }
    .hr-nav__item {
        height: inherit;
        .hr-nav__link {
            padding: 1rem;
            color: $font-color;
            font-weight: bold;
            &:hover {
                background-color: $main-color;
                color: $font-hover-color;
            }
        }
    }
    .hr-nav__active {
        background-color: $main-color;
        .hr-nav__link {
            color: $font-hover-color;
        }
    }
}

.hr-breadcrumb__wrapper {
    margin: 10px;
    .container {
        background-color: $bg-main-color;
        clear: both;
        .breadcrumb {
            margin: 0;
            padding-left: 10px;
            li {
                a {
                    font-weight: bold;
                    color: $btn-search-color;
                }
            }
        }
    }
}

.hr-main__wrapper {
    .container {
        background-color: $bg-main-color;
        .hr-banner {
            width: 100%;
            height: 350px;
            // padding: 10px 0;
            .swiper-container {
                --swiper-theme-color: $success-color; /* 设置Swiper风格 */
                --swiper-navigation-color: $main-color; /* 单独设置按钮颜色 */
                --swiper-navigation-size: 30px; /* 设置按钮大小 */
            }
            .hr-swiper {
                display: inherit;
                height: inherit;
            }
            .hr-swiper__content {
                width: 100%;
                position: absolute;
                bottom: 0;
                padding: 0 20px;
                background: rgba(0, 0, 0, 0.5);
                color: $font-hover-color;
                .hr-swiper__title {
                    display: block;
                    padding: 5px 0;
                    font-size: 18px;
                    color: $font-hover-color;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                }
                .hr-swiper__desc {
                    margin-bottom: 0.5rem;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                }
            }
        }
        .hr-main {
            margin-top: 10px;
            .hr-article {
                margin-bottom: 10px;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
                .card-body {
                    padding: 0.5rem 1rem;
                    // margin-bottom: 10px;
                }
                .hr-article__item {
                    height: 160px;
                    max-height: 160px;
                    position: relative;
                    padding: 10px;
                    border: 1px solid $nav-color;
                    overflow: hidden;
                    margin: 10px 0;
                    // box-shadow: 0 0 5px 0 rgba(151, 151, 151, 0.5);
                    a {
                        // float: left;
                        img {
                            width: 200px;
                            max-width: 200px;
                            height: 139px;
                            float: left;
                            overflow: hidden;
                        }
                    }

                    .hr-atcitem__infos {
                        height: 139px;
                        font-size: 12px;
                        // margin-left: 200px;
                        padding: 5px 10px;
                        overflow: hidden;
                        .header-title {
                            font-size: 18px;
                            margin: 0;
                            a {
                                color: $main-color;
                            }
                        }
                        .hr-atcitem__icongroup {
                            height: 20px;
                            margin: 5px 0 0 0;
                            .hr-icongroup {
                                padding-right: 5px;
                                .hr-icon__catalog {
                                    color: $title-font-color;
                                    &:hover {
                                        text-decoration: underline;
                                    }
                                }
                            }
                        }
                        .hr-atcitem__info {
                            height: 46px;
                            overflow: hidden;
                            margin-bottom: 10px;
                        }
                        .hr-actitem__detail {
                            float: right;
                        }
                    }
                }
            }

            .hr-pagination__wrapper {
                .hr-pagination__main {
                    float: right;
                    margin-top: 1rem;
                    li.active {
                        .page-link {
                            background-color: #4a494d;
                            border-color: #4a494d;
                        }
                    }
                }
            }
            
            .hr-atclist__wrapper {
                .hr-article {
                    height: 330px;
                    margin-bottom: 10px;
                    overflow: hidden;
                    .card-header {
                        color: $font-color;
                        font-weight: 600;
                        font-size: 18px;
                    }
                    > .card-body {
                        padding: 0.5rem 1.5rem;
                        
                        > .hr-article__item {
                            height: 270px;
                            max-height: 270px;
                            overflow: hidden;
                            margin: 0;
                            padding: 0;
                            border: none;
                            li {
                                display: flex;
                                flex-flow: row nowrap;
                                justify-content: space-between;
                                align-items: center;
                                height: 26px;
                                > a {
                                    flex-grow: 2;
                                    width: 70%;
                                    &:hover {
                                        text-decoration: underline;
                                    }
                                    > h4 {
                                        font-size: 14px;
                                        text-overflow: ellipsis;
                                        white-space: nowrap;
                                        overflow: hidden;
                                        color: $main-color;
                                        margin: 0;
                                        padding: 0 10px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
              
            /*detail*/
            .hr-atcdtl__wrapper,
            .hr-dtlnext__wrapper,
            .hr-dtldown__wrapper,
            .hr-atclist__wrapper,
            .hr-dtllike__wrapper,
            .hr-flink__wrapper {
                margin-bottom: 10px;
                overflow: hidden;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
            }
            
            .hr_atcdtl__main {
                .hr-atcdtl__title {
                    display: inherit;
                    text-align: center;
                    color: $title-font-color;
                    text-shadow: 0 0 10px;
                }
                .hr-atcdtl__content {
                    .hr-atcdtl__infos {
                        text-align: center;
                    }
                    .article-lisence {
                        border: 1px dashed $title-font-color;
                        padding: 5px 15px 15px;
                        background-color: $bg-color;
                        h4 {
                            text-align: center;
                            border-bottom: 1px dashed;
                            padding-bottom: 15px;
                        }
                    }
                }
                
            }
            .hr-dtlnext__wrapper {
                .hr-page__text {
                    .hr-page__pre, 
                    .hr-page__next {
                        height: 32px;
                        line-height: 32px;
                        font-size: 16px;
                        color: $main-color;
                        a {
                            color: $font-color;
                            &:hover {
                                text-decoration: underline;
                                color: $success-color;
                            }
                        }
                    }
                }
            }
            .hr-atclist__wrapper {
                box-shadow: 0 0 35px 0 rgba(154,161,171,.15);
                padding: 0;
            }
            
            .hr-flink__wrapper {
                .card-body {
                   a {
                        color: $title-font-color;
                        &:hover {
                            text-decoration: underline;
                           color: $font-color;
                           
                       }
                   }
                }
            }
        }
        
        .hr-aside {
            margin-top: 10px;
            .hr-connect__wrapper {
                margin-bottom: 10px;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
            }
            .hr-atctop__wrapper {
                margin-bottom: 10px;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
                .card-body {
                    padding: 0.5rem 1.5rem;
                    
                    ul {
                        position: relative;
                        overflow: hidden;
                        padding: 0;
                        li {
                            display: flex;
                            flex-flow: row nowrap;
                            justify-content: space-between;
                            align-items: center;
                            height: 26px;
                            &:nth-child(1) > i {
                                background-color: $success-color;
                            }
                            &:nth-child(2) > i {
                                background-color: $info-color;
                            }
                            &:nth-child(3) > i {
                                background-color: $warning-color;
                            }
                            > i {
                                padding: 0px 5px;
                                background-color: $btn-search-color;
                                color: $font-hover-color;
                                box-shadow: 0 0 5px 0 rgba(49, 58, 70, 0.5);
                            }
                            > a {
                                flex-grow: 2;
                                margin: 0 5px;
                                width: 70%;
                                &:hover {
                                    text-decoration: underline;
                                }
                                > h4 {
                                    font-size: 14px;
                                    text-overflow: ellipsis;
                                    white-space: nowrap;
                                    overflow: hidden;
                                    color: $main-color;
                                    margin: 0;
                                    // padding: 0 10px;
                                }
                            }
                        }
                    }
                }
            }
            .hr-atcad__wrapper {
                 margin-bottom: 10px;
                 .card-header {
                     color: $font-color;
                     font-weight: 600;
                     font-size: 18px;
                 }
            }
            .hr-atclike__wrapper {
                margin-bottom: 10px;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
                .card-body {
                    padding: 0.5rem 1.5rem;
                    margin-bottom: 10px;
                    ul {
                        position: relative;
                        overflow: hidden;
                        padding: 0;
                        li {
                            position: relative;
                            width: 100%;
                            height: 60px;
                            line-height: 60px;
                            white-space: nowrap;
                            word-wrap: normal;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            border-bottom: 1px solid #e9ecef;

                            > i {
                                padding: 0px 5px;
                                background-color: $btn-search-color;
                                color: $font-hover-color;
                                box-shadow: 0 0 5px 0 rgba(49, 58, 70, 0.5);
                            }
                            > a {
                                display: block;
                                position: relative;
                                width: 100%;
                                height: 60px;
                                line-height: 60px;
                                padding-top: 10px;
                                padding-bottom: 10px;
                                overflow: hidden;
                                &:hover {
                                    padding-left: 6px;
                                    transition: ease-in-out 0.3s;
                                    > h4 {
                                        text-decoration: underline;
                                    }
                                }
                                > .cmd-time {
                                    display: inline-block;
                                    width: 30%;
                                    height: 40px;
                                    line-height: 40px;
                                    text-align: center;
                                    background: $bg-color;
                                    color: $title-font-color;
                                    float: left;
                                }
                                > h4 {
                                    display: inline-block;
                                    float: right;
                                    width: 70%;
                                    height: 40px;
                                    line-height: 20px;
                                    overflow: hidden;
                                    font-size: 14px;
                                    color: #3f3f3f;
                                    padding: 0;
                                    padding-left: 9pt;
                                    white-space: normal;
                                    margin: 0;
                                }
                            }
                        }
                    }
                }
            }
            .hr-badge__wrapper {
                margin-bottom: 10px;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
                .card-body {
                    padding: 0.5rem 1.5rem;
                    margin-bottom: 10px;
                    span {
                        padding: 5px 10px;
                        margin: 5px 0;
                        cursor: pointer;
                        margin-left: 5px;
                        a {
                            color: $font-hover-color;
                        }
                    }
                    .badge-bg1 {
                        background-image: linear-gradient(135deg, #e2b0ff 10%, #9f44d3 100%);
                    }
                    .badge-bg3 {
                        background-image: linear-gradient(135deg, #2afadf 10%, #4c83ff 100%);
                    }

                    .badge-bg4 {
                        background-image: linear-gradient(135deg, #79f1a4 10%, #0e5cad 100%);
                    }

                    .badge-bg2 {
                        background-image: linear-gradient(135deg, #ffd3a5 10%, #fd6585 100%);
                    }

                    .badge-bg6 {
                        background-image: linear-gradient(135deg, #fd6e6a 10%, #ffc600 100%);
                    }

                    .badge-bg5 {
                        background-image: linear-gradient(135deg, #70f570 10%, #49c628 100%);
                    }

                    .badge-bg7 {
                        background-image: linear-gradient(135deg, #ff96f9 10%, #c32bac 100%);
                    }
                }
            }
        }
    
        .hr-main__footer {
            .hr-flink__wrapper {
                margin-bottom: 10px;
                .card-header {
                    color: $font-color;
                    font-weight: 600;
                    font-size: 18px;
                }
                .card-body {
                    padding: 0.5rem 1.5rem;
                    ul {
                        padding: 0;
                        margin: 10px 0;
                        li {
                            a {
                                color: $title-font-color;
                                &:hover {
                                    text-decoration: underline;
                                    color: $font-color;
                                }
                            }
                            
                        }
                    }
                }
            }
        }
    
    }
}




.hr-footer__wrapper {
    // height: 80px;
    margin-top: 10px;
    padding: 50px 0;
    background-color: $top-tip-color;
    .hr-footer__main {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-around;
        .hr-footer__left {
            a {
                img {
                    height: 80px;
                }
            }
        }
        .hr-footer__right {
            color: $font-footer-color;
            a {
                color: $font-footer-color;
                &:hover {
                    text-decoration: underline;
                }
            }
            p {
                margin-bottom: 0.3rem;
            }
        }
        
    }
}



